package me.wangqu.weiyouqu.web.rest.util.constant;

/**
 * Created by arcticfox on 5/6/16.
 */
public class Constant {

    public static final String PRODUCT_NAME = "微有趣"; // 产品名称

    public static final Integer REGISTER_SONG = 5; // 注册账户赠送金额

    /**
     * 短信接口
     */
    public static final String SMS_URL = "http://gw.api.taobao.com/router/rest"; // 阿里大鱼正式环境短信接口地址
    public static final String SMS_APP_KEY = "23352695"; // 阿里大鱼 app key
    public static final String SMS_APP_SECRET = "b2b10433487dc7a27f6cc82aea034d1f"; // 阿里大鱼 app secret

    public static final String SMS_SIGN_NAME_REGISTER = "微有趣"; // 注册验证
    public static final String SMS_SIGN_NAME_CHANGE = "微有趣"; // 变更验证 - 密码变更

    /**
     * 短信模板
     */
    public static final String SMS_TEMPLATE_CODE_REGISTER = "SMS_8271030"; // 注册模板 - 验证码${code}，有效期${time}分钟。您正在注册成为${product}用户，感谢您的支持！
    public static final String SMS_TEMPLATE_CODE_PASSWORD_RESET = "SMS_8330986"; // 修改密码 - 验证码${code}，${time}分钟有效。您正在尝试修改${product}登录密码，请妥善保管账户信息。

    /**
     * 短信类型
     */
    public static final Integer CAPTCHA_TYPE_REGISTER = 1; // 注册
    public static final Integer CAPTCHA_TYPE_PASSWORD_RESET = 2; // 修改密码


    /**
     * 字典类型
     */
    public static final Integer DICT_TYPE_EDUCATION = 1; // 学历
    public static final Integer DICT_TYPE_PROFESSION = 2; // 行业
    public static final Integer DICT_TYPE_INCOME = 3; // 收入
    public static final Integer DICT_TYPE_ARTICLE = 4; // 文章类型

    /**
     * 收入类型
     */
    public static final Integer INCOME_TYPE_SOMEBODY_READ  = 1; // 他人阅读收入
    public static final Integer INCOME_TYPE_SIGN_IN = 2; // 签到收入
    public static final Integer INCOME_TYPE_STUDENT = 3; // 学生贡献

    /**
     * 帐户类型 - 或提现类型
     */
    public static final Integer ACCOUNT_TYPE_ZHIFUBAO = 1; // 支付宝
    public static final Integer ACCOUNT_TYPE_WEIXIN = 2; // 微信

    /**
     * 提现状态
     */
    public static final Integer ACCOUNT_WITHDRAW_STATUS_PROGRESS = 0; // 审核中
    public static final Integer ACCOUNT_WITHDRAW_STATUS_APPROVE = 1; // 通过
    public static final Integer ACCOUNT_WITHDRAW_STATUS_FIALED = 2; // 拒绝
    public static final Integer ACCOUNT_WITHDRAW_STATUS_EXCEPTIOIN = 3; // 异常

    /**
     * 轮播图片类型
     */
    public static final Integer VIEWPAGER_TYPE_ME_HEADER = 1; // 我的页面头部轮播图片

    /**
     * 分享信息类型
     */
    public static final Integer SHARE_INFO_TYPE_STUDENT = 1; // 收徒
    public static final Integer SHARE_INFO_TYPE_INCOME = 2; // 晒单

    /**
     * refererdata aid 特殊值
     */
    public static final Integer REFERERDATA_AID_SIGN = 0; // 登陆或签到收入
    public static final Integer REFERERDATA_AID_STUDENT = -1; // 徒弟贡献

    /**
     * 文章状态
     */
    public static final Integer ARTICLE_STATE_TOP = 1; // 置顶文章
    public static final Integer ARTICLE_STATE_PUB = 0; // 已发布文章
    public static final Integer ARTICLE_STATE_PRE = -1; // 待发布文章
    public static final Integer ARTICLE_STATE_DEL = -2; // 伪删除文章

    public static final String WEIXIN_IMAGE_PROTECTED = "http://read.html5.qq.com/image?src=fav&imgflag=2&imageUrl=";
}
